package com.baohua.service;

import java.util.List;
import java.util.Map;

import com.baohua.exception.BaohuaSystemException;
import com.baohua.model.MaterielInformation;

public interface MaterielInformationService {
	
	/**
	 * 根据指定的SQL语句查询结果。
	 * @param sql  SQL语句
	 * @return
	 */

	public Map getMaterielInfomation(MaterielInformation mInfo, int page, int pagesize);
	/**
	 * 新增物料
	 * @param inStore
	 * @throws BaohuaSystemException 
	 */
	public void addMaterielInfomation(MaterielInformation materielInfomation) throws BaohuaSystemException;
	/**
	 * 更新物料
	 * @param inStroe
	 * @throws BaohuaSystemException 
	 */
	public void updateMaterielInfomation(MaterielInformation materielInfomation) throws BaohuaSystemException;
	/**
	 * 删除该物料
	 * @param inStroe
	 * @throws BaohuaSystemException 
	 */
	public void deleteMaterielInfomation(long id) throws BaohuaSystemException;
	/**
	 * 根据物料ID查询该物料
	 * @param id
	 * @return
	 * @throws BaohuaSystemException 
	 */
	public MaterielInformation getMaterielInfomationById(Long id) throws BaohuaSystemException;
	/**
	 * 根据物料编号查询该物料
	 * @param materialNo  物料编号
	 * @return
	 */
	public MaterielInformation getMaterielInfomationByMaterialNo(String materialNo);
	
	public List<String> queryDictionatyByPid(long id);
}
